
    <%@page import="com.mysql.cj.xdevapi.JsonArray"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.sql.Array"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ page import="java.io.IOException" %>
<%@page
import="java.io.PrintWriter"
import ="java.net.URLEncoder"
import=" java.sql.Connection"
import ="java.sql.DriverManager"
import ="java.sql.PreparedStatement"
import ="java.sql.ResultSet"
import ="javax.servlet.ServletException"
import=" javax.servlet.annotation.WebServlet"
import ="javax.servlet.http.HttpServlet"
import ="javax.servlet.http.HttpServletRequest"
import=" javax.servlet.http.HttpServletResponse"
import=" javax.swing.JOptionPane" %>
    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>删除企业</title>
</head>
<body>
<%
try {request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
	Class.forName("com.mysql.cj.jdbc.Driver");
	Connection con = (Connection) DriverManager.getConnection("jdbc:mysql://localhost:3306/yj?autoReconnect=true&serverTimezone=GMT","root","root");
	
	
	
	PreparedStatement p=con.prepareStatement("delete   from qy   where qyid=?");
	
	p.setString(1,  request.getParameter("id").toString());
	p.executeUpdate();

		

	con.close();p.close();
	
	response.sendRedirect("start.jsp");
	

	
	
	
}catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}	
	


%>


</body>
</html>